| ColorManagement Xojo Plugin |
|
ICCColorProfile.RGBColorToFloatCMYKColor Method
Converts a single RGB color to a CMYK color (float based) using color profiles.
Parameters
- rgbValue
- The RGB value to convert to CMYK.
- rgbProfile
- The rgb color profile. (This has to be color profile with RGB color space). If nil or incorrect color space is supplied then crude conversion is done.
- c (ByRef parameter)
- Returns the cyan value in this ByRef parameter. (0.0 to 1.0)
- m (ByRef parameter)
- Returns the magenta value in this ByRef parameter. (0.0 to 1.0)
- y (ByRef parameter)
- Returns the yellow value in this ByRef parameter. (0.0 to 1.0)
- k (ByRef parameter)
- Returns the key value in this ByRef parameter. (0.0 to 1.0)
- cmykProfile
- The CMYK color profile. (This has to be color profile with CMYK color space). If nil or incorrect color space is supplied then crude conversion is done.
Returns
- ICCColorProfile.ErrorValues
- Error code or no Error if everything was all right.
Remarks
You should not use this to convert colors in image one by one.
This function is more of to find CMYK color to use as stroke color or other such in things like PDF document.
If profiles are nil or have incorrect color space then error code is returned.
If error code was returned then Crude conversion was done instead of color profile conversion.
See Also
ICCColorProfile Class